import Layout from '@/layout'

const storeRouter = {
  path: '/store',
  component: Layout,
  redirect: '/store/other_store',
  name: 'Policy',
  meta: {
    title: '库存管理',
  },
  children: [
    {
      path: 'other_store',
      name: 'OtherStore',
      meta: { title: '其他入库' },
      component: () => import('@/views/store/other_store'),
    },
    {
      path: 'other_deliver',
      name: 'OtherDeliver',
      meta: { title: '其他出库'},
      component: () => import('@/views/store/other_deliver'),
    },
    {
      path: 'store_taking',
      name: 'StoreTaking',
      meta: { title: '库存盘点' },
      component: () => import('@/views/store/store_taking'),
    },
    {
      path: 'check_out',
      name: 'CheckOut',
      meta: { title: '借出登记' },
      component: () => import('@/views/store/check_out'),
    },
    {
      path: 'return_back',
      name: 'ReturnBack',
      meta: { title: '还回登记' },
      component: () => import('@/views/store/return_back'),
    },
    {
      path: 'goods_stock',
      name: 'GoodsStock',
      meta: { title: '库存查询' },
      component: () => import('@/views/store/goods_stock'),
    },
    {
      path: 'store_transfer',
      name: 'StoreTransfer',
      meta: { title: '库存调拨' },
      component: () => import('@/views/store/store_transfer'),
    },
  ]
}

export default storeRouter